

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title><link href='../../home/css/etm.css' rel='stylesheet' type='text/css' /><!--[if IE 8]> <link href='/Themes/Theme3/ie8Fix.css' rel='stylesheet' /> <![endif]-->

    <script src="../../home/js/jquery-1.4.2.min.js"></script>
    <script src="../../home/js/WdatePicker.js"></script>
    <script type="text/javascript" src="../../home/js/flexigrid.js"></script>
    <script src="../../home/js/jQuery.Ex.js"></script>
    <script src="../../home/js/jQuery.etmTabs.js"></script>
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE"/><script src='../../home/js/jquery.nicescroll.min.js' type='text/javascript'></script><script type='text/javascript'>var isEtmClient=false;function ReSizeScrollbar() { if ($('form').getNiceScroll().length > 0) {     $('form').getNiceScroll().onResize();}}function ReSizeFlexgridScrollbar() { if ($('.bDiv').getNiceScroll().length > 0) {     $('.bDiv').getNiceScroll().onResize();}}function InitFlexgridScrollbar(){     $('.bDiv').niceScroll({cursorcolor: '#75A801',zindex:4});}function ReSizenDivScrollbar() { if ($('.flexigrid .nDiv').getNiceScroll().length > 0) {     $('.flexigrid .nDiv').getNiceScroll().onResize();}}function InitnDivScrollbar(){     $('.flexigrid .nDiv').niceScroll({cursorcolor: '#75A801',horizrailenabled:false});}function proxyExecuteFun(funName) {if(funName == undefined || funName==null|| funName.length==0){window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return;}  if (window[funName]()) {window.parent.showsending(true, "执行中，请耐心等待");setTimeout(function() { window.parent.showsending(false); }, 5000);return true; } return false; };var _tmpOnSelectedFile = null;function onSelectedFile(fileName, fileUrl, isImg) {   if (_tmpOnSelectedFile != null) {        _tmpOnSelectedFile(fileName, fileUrl, isImg);    }}function showFileList(callback) {   window.parent.showDialog('查看素材库', '/Modules/OA/CMyFileListView.aspx?navId=72e13dc7-f394-444c-9d2a-e1304f70d5ff', '900px', '450px');   _tmpOnSelectedFile = callback;}$(function () {if (navigator.userAgent.toLowerCase().indexOf('edge/') != -1) { $('input[type=submit],.tmpSubmitButton').bind({ mouseenter: function () { $(this).addClass('tmpSubmitButton'); $(this).prop('type', 'button'); }, mouseleave: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); }, click: function () { $(this).removeClass('tmpSubmitButton'); $(this).prop('type', 'submit'); } }); }if (window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { window.parent.showsending(false, ''); }$(".button").each(function() { if ($(this).attr("type") == "submit" &&!$(this).hasClass('noloading') && window.parent != undefined && window.parent != null && typeof window.parent.showsending != "undefined") { var tmpClick = $(this).attr("onclick");if(tmpClick == undefined || tmpClick==null|| tmpClick.length<2){ $(this).attr("onclick","proxyExecuteFun();");return;}  if (tmpClick.indexOf("return ") != -1 && tmpClick.indexOf("(") != -1) { tmpClick = tmpClick.substring(7).replace(/\s+/g, ''); if (tmpClick.indexOf("()") != -1) { var funName = tmpClick.substring(0, tmpClick.indexOf("(")); $(this).attr("onclick","return proxyExecuteFun('" + funName + "');"); } } } });$('body').click(function() {     if (typeof parent.onChildPageClick !='undefined') {         parent.onChildPageClick();     }});     $('form').height($(window).height()-0).niceScroll({cursorcolor: '#75A801',horizrailenabled:false });     $(window).resize(function () {         ReSizeScrollbar();     });});</script>
    <script type="text/javascript">
        $(function () {
            $("#tab").etmTabs({
                item: [
                    { Url: 'Class.aspx?navId=72e13dc7-f394-444c-9d2a-e1304f70d5ff&ClassType=0', Selected: true, Text: "常规班" },
                    { Url: 'ClassList_TuoGuang.aspx?navId=72e13dc7-f394-444c-9d2a-e1304f70d5ff&ClassType=1', Selected: false, Text: "才艺班" }
                ]
            });
        });
    </script>
    <script type="text/javascript">
        navId = '72e13dc7-f394-444c-9d2a-e1304f70d5ff';
        function ShowAdd() {
            window.parent.showDialog("添加班级", "../Modules/Teach/ClassEdit.aspx?sc=btn&navId=72e13dc7-f394-444c-9d2a-e1304f70d5ff&ClassType=0", 620, 450);
        }
        function ShowMerge() {
            var count = 0;
            var classGuid = "";
            $("input[name='selectItem']:checkbox:checked").each(function () {
                classGuid += $(this).val() + ",";
                count += 1;
            });


            if (count == 0 || count == 1) {
                alert("请选择多个班级");
                return false;
            }
            classGuid = classGuid.substring(0, classGuid.length - 1);
            window.parent.showDialog("班级合并", "../Modules/Teach/ClassMerge.aspx?sc=btn&navId=72e13dc7-f394-444c-9d2a-e1304f70d5ff&ClassType=0&ClassGuidList=" + classGuid, 620, 450);


        }
        function Merge() {


        }
        function Delete(ClassGuid) {
            if (confirm("确定要删除吗？")) {
                $.AjaxETM("Teach_ClassDelete", { "ClassGuid": ClassGuid, "ClassType": '0' },
                    function (data) {
                        alert(data);
                    },
                     true, "text");
            }
        }

        function BatchDel() {
            var count = 0;
            var classGuid = "";
            $("input[name='selectItem']:checkbox:checked").each(function () {
                classGuid += $(this).val() + ",";
                count += 1;
            });


            if (count == 0) {
                alert("请选择一条数据");
                return false;
            }
            classGuid = classGuid.substring(0, classGuid.length - 1);
            if (confirm("确定要删除吗？")) {
                $.AjaxETM("Teach_ClassDelete_More", { "ClassGuid": classGuid,"ClassType":'0' },
                    function (data) {
                        alert(data);
                    },
                     true, "text");
            }

        }
        //ClassInfo.aspx?navId={0}&&ClassGuid={1}
        function ShowInfo(memberGuid, navId) {
            window.parent.showDialog("名单资料查看", "../Modules/Teach/ClassInfo.aspx?navId=" + memberGuid + "&ClassGuid=" + navId, "550px", "450px");
        }
    </script>
</head>
<body>
    <form method="post" action="Class.aspx?navId=72e13dc7-f394-444c-9d2a-e1304f70d5ff&amp;ClassType=0" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMTUzODA4NDEzD2QWAgIDD2QWBGYPEGQQFQUJ6K+36YCJ5oupBuWwj+ePrQnmiZjnrqHnj60G5Lit54+tBuWkp+ePrRUFJDAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCRiY2E5ZTY2OC00ZmZjLTQwYWItYTQwMS05ZjQ5NTJiOTZlNDYkYTdmYzlkMTctZGZhNS00MDQ2LWJlYjQtNWFhYzJmZDEyYmIwJGI0MTdjY2Q3LWNlZmItNDFmMS04Y2E4LTgzOWRkZjBkNTBlYiQwNTJkNzgzMS1kMDNmLTQ3MjUtOGMzOS01MDVlNTc5NjUyY2QUKwMFZ2dnZ2dkZAIBDxBkEBUMCeivt+mAieaLqQkyMDEwfjIwMTEJMjAxMX4yMDEyCTIwMTJ+MjAxMwkyMDEzfjIwMTQJMjAxNH4yMDE1CTIwMTV+MjAxNgkyMDE2fjIwMTcJMjAxN34yMDE4CTIwMTh+MjAxOQkyMDE5fjIwMjAJMjAyMH4yMDIxFQwkMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwCTIwMTB+MjAxMQkyMDExfjIwMTIJMjAxMn4yMDEzCTIwMTN+MjAxNAkyMDE0fjIwMTUJMjAxNX4yMDE2CTIwMTZ+MjAxNwkyMDE3fjIwMTgJMjAxOH4yMDE5CTIwMTl+MjAyMAkyMDIwfjIwMjEUKwMMZ2dnZ2dnZ2dnZ2dnZGRkkuDbgaxBlrUOWdWdY+HT5JTul+ywHlVUZRJSTNFjSc0=" />
</div>

<div class="aspNetHidden">

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="1588C51C" />
	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdABQi14Qr5gMzPsXZJ/5lfQObiEdVcjvVYsFbIWjdHcd4wq24feEr2J4i7kOCwJyM0c4fw1U335iCAce3MhU67lmx3YV3ENZ2cyOFRxIkEuz7bQYhsN2BwQEWQykgNpBCZo/hKS37VW7hjRGU4pPTuWc4Eld5QZSgd125zedWV4StksdfCAROfJgQFnsZYXYgWV+gcQUm7zQsRVMJeHPkDmUH8O504mx2jBf2MXXEgc1DabJT2KIyvvFV8IXMZEmWCPyJj6RCtHkl71OqOahmJs7Vg7k1tAZEwm+k9pvUa/a5KtgtEQNnFbXUBnI9m60SmTXuWvCcHBjuxi8zrrySEzEnqvYZqrcOoIOvpm438NJyez2EtlK6vYimL6+Rwdch4dVwa5mHS44n1sFofZWCfLwek1xC2cq1vfWES1tPptYn37mcvGI1peOZiNVSWXbeeikgJ5OVoHpuVudu1eZjnn6I" />
</div>
        <div id="tab"></div>
        <table class="search">
            <tr>
                 <td class="textAlignRight" style="width: 54px;">年级：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <select name="ddlGrade" id="ddlGrade" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="bca9e668-4ffc-40ab-a401-9f4952b96e46">小班</option>
	<option value="a7fc9d17-dfa5-4046-beb4-5aac2fd12bb0">托管班</option>
	<option value="b417ccd7-cefb-41f1-8ca8-839ddf0d50eb">中班</option>
	<option value="052d7831-d03f-4725-8c39-505e579652cd">大班</option>

</select>
                </td>
                <td class="textAlignRight" style="width: 54px;">学年：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <select name="ddlClassYear" id="ddlClassYear" class="int">
	<option value="00000000-0000-0000-0000-000000000000">请选择</option>
	<option value="2010~2011">2010~2011</option>
	<option value="2011~2012">2011~2012</option>
	<option value="2012~2013">2012~2013</option>
	<option value="2013~2014">2013~2014</option>
	<option value="2014~2015">2014~2015</option>
	<option value="2015~2016">2015~2016</option>
	<option value="2016~2017">2016~2017</option>
	<option value="2017~2018">2017~2018</option>
	<option value="2018~2019">2018~2019</option>
	<option value="2019~2020">2019~2020</option>
	<option value="2020~2021">2020~2021</option>

</select>
                </td>
                <td class="textAlignRight" style="width: 78px;">班级名称：
                </td>
                <td class="borderRight" style="width: 160px;">
                    <input name="tbClassName" type="text" id="tbClassName" class="int" />
                </td>
                <td style="padding-left: 20px;" >
                    <input type="button" id="btnSearch" class="button" value="搜 索" />&nbsp&nbsp
                   
                </td>
            </tr>
            
        </table>
        <table id='Test' style='display:none;'></table><input type='text' style='display:none;' id='etmparams' name='etmparams' value='[{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"","Name":"ClassGuid","Width":35,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":true,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":"DoStatus","IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"ClassAct","Display":"操作","Name":"ClassGuid,DoStatus,72e13dc7-f394-444c-9d2a-e1304f70d5ff,ClassType","Width":80,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"班级名称","Name":"ClassName","Width":120,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":true,"LinkStrForamtBindColumn":"72e13dc7-f394-444c-9d2a-e1304f70d5ff,ClassGuid","LinkStrForamt":"javascript:ShowInfo(\"{0}\",\"{1}\")","LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":"ClassTeacher","Display":"老师","Name":"ClassGuid","Width":160,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"学年","Name":"ClassYear","Width":80,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"班级容量(人)","Name":"ClassCapacity","Width":80,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"right","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":null,"ColumnType":"String","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"备注","Name":"Notes","Width":320,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"left","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false},{"IsCanHide":true,"FormatString":"yyyy-MM-dd HH:mm","ColumnType":"DateTime","PageColumnGuid":"00000000-0000-0000-0000-000000000000","PageName":null,"SortId":0,"IsSetValueEqualName":false,"VirtualColumn":null,"Display":"录入时间","Name":"CreateTime","Width":120,"Sortable":false,"ColumnHeader_BindId":null,"ColumnHeader_IsBindDropDownList":false,"Align":"Center","Checkbox":false,"IsLink":false,"LinkStrForamtBindColumn":null,"LinkStrForamt":null,"LinkClass":"","OperationButtons":"","SubStringLength":0,"BindAttrs":null,"IsJsAddColumn":false}]'/><input type='text' style='display:none;' id='etmUrlparams' name='etmUrlparams' value='[{"Key":"navId","Value":"72e13dc7-f394-444c-9d2a-e1304f70d5ff"},{"Key":"ClassType","Value":"0"}]'/><input type='text' style='display:none;' id='etmPageUrl' name='etmPageUrl' value='http://vip.yj.etmcn.com/Modules/Teach/Class.aspx?navId=72e13dc7-f394-444c-9d2a-e1304f70d5ff&ClassType=0'/><input type='text' style='display:none;' id='pagename' name='pagename' value='ClassList'/><input type='text' style='display:none;' id='pageamethod' name='pageamethod' value='ClassListClassList'/><script type='text/javascript'> var etmFormId='form1';function fixIE9() {if ($.browser.msie && $.browser.version == 9) {$('#form1 select').each(function () {var name = $(this).attr('name');if (name != undefined && name.length > 0) {var value = $(this).val();if (value == null) {value = $(this).find('option:first').attr('value');$(this).val(value);}}});}}function RefreshGrid(){ $('#Test').flexOptions().flexReload(); };function addFormData() {fixIE9(); var dt = $('#form1').serializeArray(); $('#Test').flexOptions({ params: dt }); return true; }$(function () { $('#btnSearch').click(function () { $('#Test').flexOptions({ newp: 1 }).flexReload(); return false; }); });$('#Test').flexigrid({url: '../../home/data/ClassList.json',sortname: 'CreateTime',sortorder: 'desc',usepager: true,useRp: true,rpOptions: [20,30,50,100,200],rp: 30,colModel: [{ display: '', name: 'ClassGuid',etmname:'ClassGuid', width: 35, sortable: false, align: 'Center', checkbox: true ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '操作', name: 'ClassGuid,DoStatus,72e13dc7-f394-444c-9d2a-e1304f70d5ff,ClassType',etmname:'ClassAct', width: 80, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '班级名称', name: 'ClassName',etmname:'ClassName', width: 120, sortable: false, align: 'Center', checkbox: false ,IsLink:true,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '老师', name: 'ClassGuid',etmname:'ClassTeacher', width: 160, sortable: false, align: 'left', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '学年', name: 'ClassYear',etmname:'ClassYear', width: 80, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '班级容量(人)', name: 'ClassCapacity',etmname:'ClassCapacity', width: 80, sortable: false, align: 'right', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '备注', name: 'Notes',etmname:'Notes', width: 320, sortable: false, align: 'left', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'',ColumnType:'String',IsJsAddColumn:false},{ display: '录入时间', name: 'CreateTime',etmname:'CreateTime', width: 120, sortable: false, align: 'Center', checkbox: false ,IsLink:false,LinkClass:'',OperationButtons:'',SubStringLength:0,hide:false,BindId:'',IsForDDL:false,IsCanHide:true,FormatString:'yyyy-MM-dd HH:mm',ColumnType:'DateTime',IsJsAddColumn:false}],width: $(window).width(),height: $(window).height()-250+60,onSubmit: addFormData});</script>
        <div style="margin-left: 20px;"><input type="submit" name="btnAdd" value="添 加" onclick="return ShowAdd();" id="btnAdd" class="button" />&nbsp&nbsp;
                    <input type='button' onClick="return BatchDel();" id='btnBatchDel' class='button button' etmClass='btnBatchDel' style=''  value='批量删除' />&nbsp;&nbsp;
                    <input type='button' onClick="return ShowMerge();" id='btnMerge' class='button button' etmClass='btnMerge' style=''  value='合 并' /></div>
    </form>
</body>
</html>
